<%@page import="com.zy.pro.utils.Constant"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<%@ page import="com.zy.utils.SessionUtils"%>
<%@ page import="com.zy.pro.system.model.Employee"%>
<%@ page import="com.zy.pro.shop.model.ShopUser"%>
<%@ page import="com.zy.pro.user.model.User"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String imageService = Constant.DECOR_IMAGE_SERVICE_URL;
//从session中获取管理员
Employee empSession = null;
//从session中获取店家
ShopUser suSession = null;
//从session中获取业主
User userSession = null;
//角色类型1:业主,2:店家,3:管理员,null/0:无角色
String roleType = SessionUtils.getRoleType(request);
if("1".equals(roleType)){
	userSession = SessionUtils.getUser(request);
}else if("2".equals(roleType)){
	suSession = SessionUtils.getShopUser(request);
}else if("3".equals(roleType)){
	empSession = SessionUtils.getEmpl(request);
}
%>

<%!
private String htmlchars(String str) {
	str = str.replaceAll("&", "&amp;");
	str = str.replaceAll("<", "&lt;");
	str = str.replaceAll(">", "&gt;");
	str = str.replaceAll("\"", "&quot;");
	return str;
}
%>
<link rel="shortcut icon" href="<%=basePath %>/images/favicon.ico" type="image/x-icon" />
<link type="text/css"  rel="stylesheet" href="<%=basePath %>/css/bootstrap.css"  />
<link type="text/css"  rel="stylesheet" href="<%=basePath %>/css/style.css"  />
<link type="text/css" href="<%=basePath %>/css/owl.carousel.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<%=basePath %>/css/etalage.css">

							    
<!-- webfonts -->
<link href='http://fonts.useso.com/css?family=Glegoo:400,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.useso.com/css?family=Rochester' rel='stylesheet' type='text/css'>
<link href='http://fonts.useso.com/css?family=Lora:400,700' rel='stylesheet' type='text/css'>
<!-- 五星评论css -->

<!-- 引入jQuery -->
<script src="<%=basePath %>/jslib/jquery-1.8.3.js" type="text/javascript" charset="utf-8"></script>
<!-- 异步上传js -->
<script type="text/javascript" src="<%=basePath %>/artDialog/ajaxupload.js"></script>
<script type="text/javascript" src="<%=basePath %>/artDialog/ajaxfileupload.js"></script>
<!-- 弹框js -->
<script src="<%=basePath %>/artDialog/jquery.artDialog.js?skin=opera"></script>
<script src="<%=basePath %>/artDialog/plugins/iframeTools.js"></script>
<!-- 五星评论js -->
<script type="text/javascript" src="<%=basePath %>/jslib/raty/jquery.raty.js"></script>

<!-- 家装网站js -->
<script type="text/javascript" src="<%=basePath %>/js/responsiveslides.min.js"></script>
<script type="text/javascript" src="<%=basePath %>/js/owl.carousel.js"></script>
<script type="text/javascript" src="<%=basePath %>/js/jquery.etalage.min.js"></script>
<script type="text/javascript" src="<%=basePath %>/js/main.js"></script>


<script src="<%=basePath %>/jslib/jquery.json-2.4.js" type="text/javascript" charset="utf-8"></script>

<link href='<%=basePath %>/css/fullcalendar.css' rel='stylesheet' />
<link href='<%=basePath %>/css/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='<%=basePath %>/js/moment.min.js'></script>
<script src='<%=basePath %>/js/fullcalendar.min.js'></script>

<!-- lhgDialog -->
<script type="text/javascript" src="<%=basePath %>/jslib/lhgdialog/lhgdialog.min.js?self=false&skin=chrome" charset="utf-8"></script>

<!--Validform  -->
<link rel="stylesheet" href="<%=basePath %>/jslib/Validform/css/style.css?v=20130328" type="text/css">
<link rel="stylesheet" href="<%=basePath %>/jslib/Validform/css/divfrom.css" type="text/css">
<script type="text/javascript" src="<%=basePath %>/jslib/Validform/js/Validform_Datatype.js" charset="utf-8"></script>
<script type="text/javascript" src="<%=basePath %>/jslib/Validform/js/Validform_v5.3.1_min.js" charset="utf-8"></script>

<!-- DatePicker -->
<script type="text/javascript" src="<%=basePath %>/jslib/My97DatePicker/WdatePicker.js"></script>


<!-- 公共js -->
<script type="text/javascript" src="<%=basePath %>/jslib/common.js" charset="utf-8"></script>

<!-- 超链接样式 -->
<link rel="stylesheet" href="<%=basePath %>/jslib/superlink/super.css" type="text/css">

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!-- root -->
<script type="text/javascript">
	var root = '<%=basePath %>';
</script>
<c:set var="root" value="<%=basePath %>"></c:set>
<c:set var="imageService" value="<%=imageService%>"></c:set>
<c:set var="empSession" value="<%=empSession%>"></c:set>
<c:set var="roleType" value="<%=roleType%>"></c:set>
<c:set var="suSession" value="<%=suSession%>"></c:set>
<c:set var="userSession" value="<%=userSession%>"></c:set>

<script type="text/javascript">
function htmlSwitch(str) {
	var reg1=new RegExp("&","g");
	var reg2=new RegExp("<","g");
	var reg3=new RegExp(">","g");
	var reg4=new RegExp("\"","g");
	str = str.replace(reg1, "&amp;");
	str = str.replace(reg2, "&lt;");
	str = str.replace(reg3, "&gt;");
	str = str.replace(reg4, "&quot;");
	/*
	str = str.replace("&", "&amp;");
	str = str.replace("<", "&lt;");
	str = str.replace(">", "&gt;");
	str = str.replace("\"", "&quot;");
	*/
	return str;
}
</script>